#pragma once
#include <QtWidgets>
#include <tchar.h>

#define LBPLUGID (u8"{FA7D95A2-3AFA-4730-8E30-1686100DE4C7}")

#define VERMAJOR 1
#define VERMINOR 0


#define REF_IMPLEMENT_DYNCREATE_EX(className, classID) REF_IMPLEMENT_DYNCREATE(className, classID, VERMAJOR, VERMINOR)


#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new(_CLIENT_BLOCK, __FILE__, __LINE__)
#endif

namespace LBPROJLOGIC
{
    enum TreeColumnType
    {
        TC_INDEX = 0,
        TC_NAME,
        TC_SPAN,
        TC_START,
        TC_END,
        TC_ACTRUAL_SPAN,
        TC_ACTRUAL_START,
        TC_ACTRUAL_END,
        TC_MILESTONE,
        TC_PRE_TASK,
        TC_COLUMN_MAX
    };

    enum PreTaskColumnType
    {
        PC_INDEX = 0,
        PC_NAME,
        PC_RELATION,
        PC_SPAN,
        PC_COLUMN_MAX
    };

    struct SEditPreTaskItem
    {
        int index;
        int type;
        int span;
    };
}